package chapter6_1_LockSupport;

import java.util.concurrent.locks.LockSupport;

/**
 * @author Summerday
 */
public class LockSupportTest3 {

    public static void main(String[] args) {

        System.out.println("begin park");
        // 使当前线程获得许可证
        LockSupport.unpark(Thread.currentThread());
        // 再次调用park方法
        LockSupport.park();

        System.out.println("end park");

    }
}
